package com.dlc.shop.security.api.adapter;

import com.dlc.shop.security.common.adapter.DefaultAuthConfigAdapter;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * @author FrozenWatermelon
 * @date 2020/7/16
 */
@Component
public class ResourceServerAdapter extends DefaultAuthConfigAdapter {

    public static final List<String> EXCLUDE_PATH = Arrays.asList(
            "/p/score/scoreLevel/listLevels",
            "/p/station/userstation",
            "/p/wx/jsapi/createJsapiSignature",
            "/huifu/**"
    );

    @Override
    public List<String> pathPatterns() {
        return Arrays.asList("/p/*");
    }

    @Override
    public List<String> excludePathPatterns() {
        return EXCLUDE_PATH;
    }
}
